﻿using System;
using System.Web;
using System.Web.UI;
using ASPNETVN.PORTAL.Modules.ANNOUNCEMENT.Components;

namespace ASPNETVN.PORTAL.Modules.ANNOUNCEMENT.Pages
{
    public partial class PageStyle2 : Page
    {
        protected string BackgroundColor = "#FFFFFF";
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            this.Theme = Global.GetThemeName();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                int top = Convert.ToInt32(Request.QueryString["top"]);
                Guid mid = new Guid(Request.QueryString["mid"]);
                this.BackgroundColor = HttpUtility.UrlDecode(Request.QueryString["bgcolor"]);


                //HtmlLink cssLink = new HtmlLink();
                // cssLink.Href = Global.ApplicationPath + "~/Modules/GALLERY/StyleSheets/ImageSlideshow.css";
                // cssLink.Attributes.Add("rel", "stylesheet");
                // cssLink.Attributes.Add("type", "text/css");

                // Page.Header.Controls.Add(cssLink);

                rptItem.DataSource = Item.SelectCollectionTop(mid, top);
                rptItem.DataBind();
            }
        }
    }
}
